import R from "./request";

export const uploadImage = (file) => {
  return R({
    url: "/upload/image",
    method: "POST",
    data: file,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
};

//统一返回数据
export const requestData = (url) => {
  return R({
    url,
    method: "GET",
  });
};
